{% extends 'extend/basic.html' %}
{% block content %}
<div class="row-fluid">
            <div class="span9">
                    <div class="widget-header widget-header-flat">


              <div class="widget-header widget-header-flat">

                          <div class="row">
                    <div class="hero-left">
                        <!-- <h1>Hello, {{ current_user.username }}</h1><br> -->
                        <p><a class="btn btn-success btn-large">当前服务器时间为:<br>
                        <br>{{ Time }}</a></p>

                        <hr>
                        <h4 class="lighter">
                            时间调整
                        </h4>
                    </div>
                <h5>请填写时间到文本框格式为:<code>&lt; 年-月-日　小时:分钟:秒 &gt;</code></h5>
                             <form id= 'jptest' role="form" action='{{ url_for('main.settime') }}'  method='POST'>
                                  <div class="form-group">
                                        <textarea type="text" name="contenet" class="form-control" rows="4" placeholder="2017-01-01 23:30:00" style="margin: 0px 0px 10px; height: 50px; width: 550px; background-color: write;color: black"></textarea>
                                  </div>
                                      <button type="submit" class="btn btn-primary"> 提交 </button>
                                       {% for message in get_flashed_messages(with_categories=True) %}
                                <div class="alert alert-{{ message[0] }}">
                                    <button type="button" class="close" data-dismiss="alert">&times;</button>
                                   <b>{{ message[1] }}</b>
                                </div>
                            {% endfor %}
                            </form>



            <hr>
{% if content %}
            <div class="alert alert-success" role="alert">
              <b>OK:</b> 时间设定成功:  <b>{{ content }}</b>.
            </div>
{% endif %}
  </div>
</div>
{% endblock %}
